#include<bits/stdc++.h>
using namespace std;
int r[100000];
#define ll long long
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ll n;
    cin >>n;
    for (ll i = 0;i<n;i++){
        cin >> r[i];
    }
    sort(r,r+n);
    ll Cnt = 0;
    for (ll j = 1;j<n;j++){
        if (r[j] > r[Cnt]){
            Cnt++;
        }

    }
    cout << n - Cnt;
    return 0;
}
